
#include <stdio.h>
#include <stdlib.h>

#include "lb.h"

int mqttLinkCheck()
{
    printf("%s:mqttcb\n", __FUNCTION__);
    return 0;
}
int mqttSend(char *data, lbSipHeader_t *sipHeader)
{
    printf("%s:mqttcb{%s} from:%s to:%s method:%d\n", __FUNCTION__, data, sipHeader->from, sipHeader->to, sipHeader->method);
    //lbMqttMsgIncoming(data, dataLen);
    return 0;
}

int main()
{
    lbInit(7060);
    lbMqttCB_t cb;
    cb.mqttLinkCheck = mqttLinkCheck;
    cb.mqttSend = mqttSend;
    lbMqttCallBackRegister(&cb);
    
    while(1) {
        sleep(1);
    }
    return 0;
}